﻿using FluentNHibernate.Mapping;

namespace Model
{
	public class Character
	{
		public virtual int ID { get; set; }
		public virtual string Name { get; set; }
		public virtual int Level { get; set; }
		public virtual Realm Realm { get; set; }
		public virtual Guild Guild { get; set; }
		public virtual Race Race { get; set; }
		public virtual Gender Gender { get; set; }
		public virtual Class Class { get; set; }
	}

	public class CharacterMapping : ClassMap<Character>
	{
		public CharacterMapping()
		{
			Id(x=>x.ID);
			Map(x => x.Name);
			Map(x => x.Level);
			References(x => x.Realm);
			References(x => x.Guild);
			Map(x => x.Race);
			Map(x => x.Gender);
			Map(x => x.Class);
		}
	}
}
